﻿using UnityEngine;
public class BuffRevealed : BuffBase
{
    public Vector2Int StartPos;
    public BuffRevealed() : base()
    {
        Type = BuffType.Revealed;
    }

    public override void OnCreate()
    {
        StartPos = Owner.Pos;
    }

    public override void Update()
    {
        if (Owner.Pos != StartPos)
        {
            Owner.RemoveBuff(BuffType.Revealed);
        }
    }
    public override void OnEndPhase()
    {
        Owner.RemoveBuff(BuffType.Revealed);
    }
    public override string ToString()
    {
        return "暴露：这个单位暂时暴露了行踪";
    }
}